# Maintainer: Johannes Löthberg <johannes@kyriasis.com>
# Maintainer: T.J. Townsend <blakkheim@archlinux.org>
# Contributor: K. Piche <kpiche@rogers.com>

pkgname=ipcalc
pkgver=0.51
pkgrel=1
pkgdesc="Calculates IP broadcast, network, Cisco wildcard mask, and host ranges"
arch=('any')
url="https://jodies.de/ipcalc"
license=('GPL')
depends=('perl')
source=(ipcalc-$pkgver.tar.gz::https://github.com/kjokjo/ipcalc/archive/refs/tags/$pkgver.tar.gz)
sha256sums=('a4dbfaeb7511b81830793ab9936bae9d7b1b561ad33e29106faaaf97ba1c117e')

package() {
  cd $pkgname-$pkgver
  install -Dm755 ipcalc -t "$pkgdir"/usr/bin
  install -Dm644 ipcalc.1 -t "$pkgdir"/usr/share/man/man1
  install -Dm644 license -t "$pkgdir"/usr/share/licenses/$pkgname
}
